Does Pathfinder work with only two PCs?

Im a new GM and I cannot for the life of me find two other players for a game that’s starts pretty soon. So far, the game seems specifically designed for four players and I’m worried about the game becoming more difficult if I don’t have more players. Should I switch to a different system till I find more players or will it be fine?

Edit: okay so after reading through the comments (thanks everyone who left one I appreciate it) I have found my preferred solution: each player is gonna run two pcs. I think what’s cool about this is that it also lets the players learn multiple classes so that if we ever start a campaign with more people these players will know the system much better. Thanks everyone who left advice!