NOT a good idea! 🙁 Compressed air cans, blow out a minute quantity of liquid propellant which can cause havoc to electronic circuit boards etc. Neither is poking about with a safety pin!!!
However, a good "blast" of air can be useful. This is best achieved with an air blower such as the Giotto, available from photographic stores. These are used to remove dust from lenses and the interior of cameras.