The air leaving the vacuum cleaner is very well filtered, no allergen.
In fact, through this filter, the air expelled by the vacuum cleaner is even much cleaner than the ambient air of the apartment.
But beware, do not remove odors, so you have to think about changing the bag regularly and obviously does not suck things that can rot like food waste.