Mina I think you're saying the shortest pathway, which is the university medical degree (typically bachelor & doctor of medicine, or similarly named), is 5 years? (Although it's typically 5-6 years depending on which uni you go to.) As Sine has already mentioned, once you finish your degree(s), you are not a GP automatically. If we link back to your earlier posts, OP, Ash444, could become a pro boxer after the degree(s) while working towards a specialisation e.g. neurosurgery, but that would be quite a lot on anyone's plate, especially if both are full time positions (med doesn't go part time easily, if my understanding is correct?).
Full disclosure: I studied a Bachelor of Science (Honours) and now working in the healthcare industry, but I am less familiar with the ins and outs of medicine. Sine would know better than I do about the pathways within med, as they're a med student.