I'd say that if there is a legal PIC on board then you can wear whatever head gear you like
Also, one doesn't need to be an instructor to
informally teach someone to fly.
The real issue is whether you can log it. Unless the PIC is an instructor of the correct sort, you can't log it, and that is the crunch - if you are paying for the flight you really really want to be able to log it.