Aye, but check with your vet which flea treatment is currently advised - fleas sometimes become resistant to a particular treatment or brand, so check with your vet - you don't need to buy it from them (which is often more expensive) but do take their advice about which treatment is currently most appropriate.
Do make sure you treat at the right dose for the body weight though, friend of ours lost 2 cats due to being prescribed the wrong dose (for a much bigger animal) of flea treatment, one died within a few days, the other hung on for a month in renal failure before it was clear nothing could be done to help.
So please please don't take flea treatments lightly - make sure you get the right thing and are giving the right dose, always.