YEs. The analog inputs can be used for digital input. You can declare them either way, no difference.