Yes, for some time.
Your home acts as gas-reservoir for a time.
International Energy Agency’s information centre on energy efficient ventilation. writes
Summary
Evacuation of people from their homes and workplacesis a standard
response to the hazards created by the release of toxic gas. However by
staying indoors a person can take advantage of the clean air stored within
the house volume, as well as the damping the house provides for sudden
changes in outdoor toxic gas concentration. The relation between indoor
and outdoor concentration is explored in this study, where it is shown that
in most cases the risk of exposure to high concentration levels is substantially reduced by remaining indoors during the entire period of toxic gas
release. Ratios of indoor to outdoor concentration are presented for
typical rates of air infiltration and outdoor concentration variation
In prolonged cases your house air will run out and effect is diminished.
Your building shields your partly from fine-particles and smoke
EPA on Wildfires and Indoor Air Quality
When wildfires create smoky conditions, there are things you can do, indoors and out, to reduce your family's exposure to smoke.
However, they also suggest taking action by using portable filters:
Have a supply of N95 respirators and learn how to use them.
Indoor Air Filtration
Tl;dr: it's safer for a time, but you or your building management needs to take action. In any case, it's better then outdoors.