There are two types of jetted tubs -- water jet tubs and air jet tubs -- but using bubble bath is safe to do only in an air jet tub.
Creating a Bubble Bath
Find out if your tub is a water jet or an air jet tub. Water jet tubs are the most common, but you cannot use bubble bath, bath salts, bath oils, etc. in a water jet tub because it will damage the water pump. However, if your tub is an air jet tub, it is safe to use bubble bath.
To find out what type of tub you own, consult the user manual that came with the tub, or refer to the manufacturer.
If your tub is an air jet tub, go ahead and prepare your bath with bubble bath, bath salts, bath oils, etc.
Relax and enjoy!