While you're at work is it okay to have someone spray paint a machine next to you when you're breathing in the fumes?

Not a good idea. Spray painting should be done in an area with adequate vwntilation so you don't have to be exposed to a lot of fumes.