Is it common for breastfeeding to be painful at first?

Carmen
Why does breastfeeding sometimes cause pain at the beginning and what are some ways to alleviate the pain?