When you setup an account using the Automatic Setup, it should use IMAP by default.
If that doesn’t happen, you can setup the account manually:
Make sure to choose IMAP when asked.