I was a heavy smoker

Ever since I found out I was pregnant I quit :/ I just renewed my medical marijuana card a few months ago 😭 kinda upset that I can’t smoke while pregnant. For those who have kids and smoke , are you high around your kids ? Do you only smoke when they go to bed ?