It can vary from baby to baby.
I've known some babies who do sleep more when they're teething and other babies I've been around while teething they lost sleep.
But most babies do tend to sleep more when they're teething or going through other growth spurts.
You can help your baby alleviate some teething pain by rubbing their gums or by giving the baby a chilled teething ring.