Yes absolutely fine! It’ll do you good. You may get more tired 1st trimester. I was swimming 4 days after my due date still aha
I've been doing spin classes, only thing I've changed is tracking my heart rate and keeping under 85% so I don't overheat x
In a straightforward pregnancy there's no reason to stop your normal exercise routine. You may want to adjust intensity according to how you feel but spin classes should be generally OK throughout pregnancy (I cycled outdoors until my due date) x