Its fine as long as you keep the room ventilated.
The fumes from the paint isn't good when your pregnant and it would be better to get someone else to do it for you or wear a mask so you don't inhale it
I've been painting my babas room also. My advice is just keep the windows open so it's well ventalated and you should be fine