Welcome to YT!
You already got a ton of great advice. I'm a first time dog owner too! Most of what I learned here I applied to my pup. 4 months isn't that old at all, I got mine at 12 months.
He's dual potty trained so he could use both. Potty training to either takes time, patience and routine.