I think that pronunciation is a major part of learning a language. Your "accent" when you are learning a new language is frequently an excuse for being lazy and is a nice way of saying that you are not forming the sounds correctly. For example, I am learning Spanish. It is very easy to pronounce Spanish like a gringo. Don't bother learning how to make the vowel sounds correctly! Go ahead and pronounce the long vowels as diphthongs! It's ok! You'll sound like a gringo. Native speakers will understand you. They will say, "Oh, isn't that cute!. He sounds like a gringo!"
Part of learning to speak Spanish is NOT to sound like a gringo. Why? Because Spanish is NOT pronounced like that. You are doing a disservice to the language when you say to yourself, "Oh, it doesn't matter that I am totally slaughtering my pronunciation of my Spanish vowel sounds. They'll understand me." If the goal of learning a new language is only communication, then we should be making a lot more grunting noises and hand gestures. You can communicate so much with grunting sounds! Why try to learn proper grammar if they can understand you with really horrible grammar and a few choice grunting noises?
Learning a foreign language is like playing a musical instrument. I can play you a melody, but my tone, my phrasing, all of the nuances of music might totally suck. Should I be happy with that? Should I say to myself, "Well, they can tell that I am playing "Twinkle, Twinkle, Little Star?" The important thing is that they can tell what melody I'm trying to play." I don't think so. Music is more than just getting across to someone what melody you are trying to play.
In the same way, learning a new language is more that just shooting for understanding.