Can I use Digital Pins 0 and 1 as normal digital inputs if I don't need to use these pins for serial comms (TX and RX) for my application?
It's just that I have run out of pins for this application but if I can use these two then all is good
Yes. Use digital pin numbers 14-19 for pins A0-A5 respectively.
pinMode(A0, OUTPUT);digitalWrite(A0, HIGH); // etc