Exercise

Does anyone know, if I have not been someone who exercises regularly, if I start swimming again if that would be OK for baby? I’m in my second trimester and I used to do yoga every now and then - maybe 4 times a month. I was a swimmer when I was younger and would go slow to start. Trying to find a good way to workout without going from zero to 100 right away. Suggestions are welcome!!