Is prime minnistor and dictator the same thing?

No a prime minister is not a dictator. The Prime Minister is simply the leader of the political party which is in government (which is democratically elected).