As someone who has been playing for 30 years, the best advice I can give you is that it's way more important to play it correctly than it is to play it fast. You're naturally going to want to rush and cut corners to try and make the thing sound like the thing as quickly as possible, but it's in your best interest to fight that urge, slow down, and focus on accuracy.
The vast majority of what you're doing when you're learning guitar (or any other instrument) is programming muscle memory. That only happens through repetition, and it's a very garbage in/garbage out process. If what you repeat the most is clean accurate movement and good technique, then that's what's going to become automatic. If what you repeat the most is sloppy, rushed, and full of mistakes, then that's what's going to become automatic.
This isn't to say that you're not allowed to make mistakes. You're going to make tons, and you don't really need to beat yourself up about it. Just notice when it's happening and then slow down and really focus on breaking down the movements and playing it cleanly and correctly. Once you can do it perfectly playing slow, then you can start speeding up again. I don't know if you've ever heard the saying, "slow is smooth and smooth is fast," or, "you have to slow down to speed up," but there's nowhere it's more true than in guitar playing. A huge portion of what makes up speed on guitar isn't just physically moving faster, it's accuracy and economy of movement.
Other than that, spend time practicing with a metronome. There are some good free ones you can download on your phone. It will help a lot in developing an accurate sense of rhythm, but just as importantly it will help train you to follow external cues while playing. This will be massively helpful later on when you're jamming with other musicians.
Also, as much as possible, keep your guitar in tune, and tuned to a consistent pitch. Having that consistency will help develop your ear for recognizing pitch, and will make trying to learn songs by ear a lot easier later on.