Yes, and it is the reason why they are not exported.They are only invisible in view mode.
In the past, I was used to export only selected objects, but this method is no more valid for a while. It seemed easier for developpers to allow the export of visible objects (Not actually hidden). This means that even objects on unselected layers are exported if they are not hidden when you look at their layers.