What is the relation between Number of Layers X Accuracy?

What is the relation between Number of Layers X Accuracy?
I thought that if the number of layer increases the accuracy will too, but in the model i got 0.56 with 4 layers 0.47.