Yup you got it. You have to finish residency before you are fully licensed.
Internship is just what people use to refer to their first year of residency.
In Pakistan, you graduate med school with an MBBS degree, and then go on to do a 'house job,' which is streamlined version of a residency. You do 6 months of internal medicine and 6 months of general surgery, then you can specialize from there and are known as a 'house officer.'
After that, you can go on to be an attending/consultant.
Or something along those lines
