That's true not just about accents, but about any language. But whether the parties communicating have enough time to actually learn each other's dialects is another question entirely (and usually no, there isn't).
Also, you can get used to a teenager saying "like" every second word and ending every single sentence by raising their pitch, or with excessive vocal fryyyyy. Ar tarnang avary vawaaal to aaah. But it doesn't necessarily mean that's effective communication style.
There are dialects and accents that are actually less articulate than others. So even if you get used to them, it helps, but you still get less information content, and more dialect-specific ambient ornamentation (like some of the teen-speak examples I mentioned above).