Yes, many people successfully wear both eyeglasses and hearing aids.
For best results, put your glasses on first and then place the hearing aid body between your glasses and your outer ear. To avoid issues when removing your glasses or putting them back on, resist tilting your glasses up or down as you take them off or put them on.