Egress windows in basement

Does adding an egress window in your basement allow you to claim it as living space in a home listing ?

I think you can not even claim anything if it is not permitted.
Poeple still list unpermitted space as “bonus” to make it more attractive.

It would have to permitted as living space. Legal height, ventilation, heating and egress.