Yes you can still wear your eyeglasses while wearing your hearing aids but it can just take a bit of adjusting the eyeglasses and hearing aids to get them to sit just correctly so that it's comfortable wearing the glasses along with the hearing aids.
I've seen a few people who were wearing eyeglasses and they also were wearing hearing aids so it certainly can be done.
When wearing a hearing aid with glasses just make sure that the hearing aid isn't hanging from your outer ear after putting the hearing aid in and putting the glasses on.
It may take some time to get used to the feeling of wearing the hearing aids with the glasses but it can be done.