Dedicated server or not?

Hey guys I’m creating a multiplayer with leaderboards and a ghost system for a racing videogame. The idea is very simple.
It’s basically a time attack with some ghosts. I should just save the best time and the movement so I can replicate it during the race.

Should I use dedicated server or not? I found a tutorial on youtube ( ) and I’m don’t know if it’s the best choice for my purpose. (this is the first time I’m trying to do this!!!) Thanks for you help guysssssss