Can I Use Analog Pins Like Digital Pins

Hey guys i am currently working on a project and i need a lot digital pins but i need more than 14 pins of the arduino uno and i cant afford an arduino mega for now so here is the question can i use analog in pins as digital pins by writing the code

digitalWrite(A0, HIGH);

thanks for the help

Absolutly, Yes. That was happened to me when I started doing with Arduion. They mark as digital and analog pins make me think that they are different and tried to expand digital pins for some projects. After that I learnt to control pin directly and just knew that they are the same. Every newbie should try it (control pin directly).