In your luggage that goes under the plane, yes (not 100% of the time, but often). So no aerosol deodorants or anything in your luggage. On board, like in the cabin where the people are, no. The cabin is artificially pressurized so that it is the same as it is on the ground, so nothing will explode. I'm pretty sure you can't bring anything in cans on planes anymore anyway. If you are going on a plane anytime soon, call the airport and ask what you can pack, but I'm pretty sure any aerosol cans are illegal, and as for soda cans, they serve free soda, tea, juice, and water on the plane, so you don't need to bring anything with you. (Beer and alcohol costs money).