Can analog pins be used as digital?

It's just warning you that if you use the analog pins for digital purposes and later want to use them as analog, you'll need to configure them correctly. But as noted above, you're unlikely to be doing that in a sketch, so go ahead.