One regulation you need to be aware of as a new pilot is 14 CFR §61.57, “Recent Flight Experience – Pilot in command”. Here’s how Bob Gardner summarizes this regulation in The Complete Private Pilot:
14 CFR 61.57 Recent flight experience: Pilot-in-command. You may not carry passengers
…