I'm not a native English speaker and sometimes I encounter article "the" used in stressed form before some noun or name, mostly in movies, like "That's not the gun, that's THE gun" or "He is THE specialist". Is it correct or common use of this article for emphasizing something outstanding? Is it allowed in written form?