Do octagons have 10 sides?

No, octagons have only 8 sides. Here's a tip to help you to remember: the root of the word octagon is 'octo' which means 'eight'. An octopus has 8 legs and an octagon has 8 sides.