Hello Mohammad. My personal opinion is that accent is not important when speaking a language, but rather pronunciation.
Pronunciation is the articulation of the different sounds in a word. If you say them properly it shouldn't effect your language.
An accent is a stress or emphasis on a particular part of something, usually a word. Different accents usaully have different intonation or put stress on different sounds or words.
Some might disagree with me, but I think as long as the pronunciation is correct the accent does effect speak badly. 🙂