My basement is getting spray insulated right now im upstairs on the second story with the doors closed to my staircase is this safe enough?
You will be fine. Otherwise they would not put it in houses. There is some smell from the chemicals, but it is a sticky foam that stays where it sprays.
As long as they are not spraying in your face, you should be fine.