Yep, player 1 gets the main pot and player 3 gets the side pot.

Here's the reason why: For the main pot, you were betting that you had the best hand between the 3 of you. You didn't so you lost to player 1. For the side pot, you were betting that you had the best hand between just you and player 3. You didn't, so you lost that to player 3.

Good luck at the tables, and welcome to FTR!