yes it does.
one may want to appear more sophisticated and well read in front of those with higher social or intellectual status in order to gain approval and self worth.
I believe it's usually subconscious, as many want to make a good impression on someone, and may do that, for example, by refraining from using slang whilst in a job interview.
this is often referred to as "code switching".