No.. it is based on your actions... (I dont know about 3, because I have yet to play it)
Like if you kill the villagers, rob shopkeepers and abuse your dog, etc.. your alignment goes towards evil. If you help villagers, do good actions that makes people like you (positive stuff instead of...