No, the main character doesn’t have to be present for every single thing, otherwise you’d have Harry Potter, consistently blundering his way into exposition again and again. (The term you’re looking for is Dramatic Irony – the audience knows things certain characters don’t).
There aren’t any rules against switching between first and third person that I’m aware of,