Yes, a person can have glasses for astigmatism only.
An eye care professional will provide a prescription for glasses or contact lenses after an eye exam if necessary.