Can I use a bike trainer in transition?

Yes. However, it must be in an out-of-the way place and only if the race director permits it. While on the trainer, you must wear a helmet and the helmet chin strap must be fastened.