Dancing is a great form of exercise, but I wouldn't suggest learning it right now, if you already know how that's a whole other story. The reason I say that is because your body is releasing a hormone called Relaxin which loosens your muscles and joints in preparation for labor. So you need to be really careful that you don't hyperextend your knees or elbows or pull muscles by moving wrong. Another thing to be careful of is your balance, if you haven't noticed it already, you will in a couple weeks, but your center of gravity is changing these next weeks coming up, which could make it harder to turn properly. Just make sure you have total awareness of your body and surrounding and don't dance too hard! I'm sure you'll be fine.
U should be fine i dance around the house all the time and im 27 weeks w a girl :)