Can a five month old puppy eat dogfood?

No. A puppy needs puppy food until at least 1 year old.