Analog vs digital pins

I am now quite familiar with the arduino digital pins, input and output , using them for all kinds of cool things. I have also used an analog pin or two, much less so, simply reading in from an analog sensor

My current question, tho, is if I do not need the analog properties of the analog pins, can I simply use them the same as a digital pin? I only need 1-2 more pins for this project, and upgrading to a mega or adding a shift register seems like overkill.

Side question, if this works, does PWM work too or how does that relate?

You can use the analog pins as digital (read or write), but afaik with no PWM.

Refer to them as A0-A5 or count up from 14-19 just like pins 0-13.