I don't know where this goes

I'll be 12 weeks pregnant at New Years, my friends are having a party, not a full blown party just a few friends because it's my friends birthday as well. Some of the people there will be smoking weed, will it be fine if I go if I stand beside the window or will it harm my baby?