depends on the solder, honestly. I doubt it would be an issue with consumer/mass produced electronics, but there's a possibility. But if you're doing your own with rosin-core solder (which is most solders,) the rosin/flux can. (you can remove it with stuff meant to remove it. which you should do because flux is freaking nasty.)
They make fume things that are basically a fan with a charcoal filter attached, if you want to buy it… they’re great, if you want to make it… “inspiration”
Honestly, short term, an old pc fan and acheap carbon filter duct taped to it will do it.
More optimally, a noctua high-static-pressure fan and a filter with a 3d printed housing/duct does the trick- the exhaust hose out a window is… overkill and “inconvenient” (unless you’re in a purpose built soldering station and can work it into a vent.)