not necessarily. a person with an ear infection is more likely to have ear pain but it is possible to have both. the only way to be sure is to have a medical professional examine both the ears and the throat. because of nerve pathways a person with a throat infection can have pain "referred" to the ear(s).
when it hurts to swallow does that possibly mean its an ear infection