Yes. Your 1099-R has the codes to tell the program if it is qualified or not. Enter your 1099-R with the codes on it.
See Where do I enter my 1099-R?