it is possible, buti dont think you can workout peacefully while having a toothache,
since the pain of the toothache is so painful, you must take care of your toothache first by rinsing with warm salty water , after your toothache is relieved then you can exercise without disturbance.