@Mari_Castillo it’s also probably worth mentioning that while this will mostly work for smoke, it does not have a chemical Volatile Organic Compound (VOC) filter. VOC filters are usually charcoal and filter our gases.
If you want an air purifier that has a HEPA filter in addition to a VOC filter take a look at the Wirecutter-recommended Austin Air HM400.
Austin Air HealthMate
Exellent for particulate and odor removal
A combination of HEPA and activated-carbon filters, the Austin Air HealthMate can remove most odors, VOCs and particulates. It's a comprehensive air purifier, but comes with a higher price.It’s a bit pricier than event the Airmega, but you’ll have even more filtration.
If you want to spend even more there’s also Molekule, which uses a new technology called Photo Electrochemical Oxidation (PECO). I don’t know that much more about it though.