Accomplice :- A person who helps someone else to commit a crime or to do something morally wrong.
Eg: Not only doing murder, being an accomplice is also a crime.
Accomplish :- To finish something successfully or to achieve something
Synonyms: achieve, attain, succeed.
Eg: We finally accomplished the task , lets have a party tonight.
He was an accomplice in that crime.
He accomplished the task.