Confused

When do you start buying pregnancy clothes? I never got any with my first child my ex husband just wouldn’t let me leave the house since I could only wear bras and sweatpants/ shorts. I just found out I’m pregnant (unplanned🤷‍♀️) would it be dangerous for me to keep dieting and working out? I was trying to lose weight from my last child🤦‍♀️