Can I use an analogue input as a discrete input?

Yes, every analogue input can be configured and used as a discrete one.
Rate the answer?