No it's supposed to be attached to the head.
Just gently try sliding it back each day - try adding some lube first or some vitamin e cream.
The foreskin should retract and fully expose the head - do not force it.
Many guys seem to have a foreskin that is too tight.
Your doctor will have seen this many many times and it would be a good idea to get him to take a look.
You just need to be extra conscious about cleaning it properly as bacteria and stuff can collect under there.
My fella has a tight foreskin but has never caused problems, he keeps it clean and it has never been a problem during sex either.