Analog pins as digital outputs for Servo.h

Hi, I know that if I run out of available digital pins, I can use the analog pins as digital.

Maybe this is a stupid question but can I use it with the Servo.h library for controlling some servos?

Thanks

SOLVED.

Yes it works.

Thanks

The analog input pins are digital IO pins by default. They have a second function as analog inputs when analogRead() is used. An exception is the A6 and A7 pins on the Nano, they are analog inputs only.