Staying inside does not protect you from PM2.5 – that stuff is fine enough to creep thru all gaps.
As a rough rule you can say inside PM2.5 levels will be about ⅔ as high as outdoors.
Except if you get all windows and doors air-tight and run air purifiers.