Do I have to file a state tax return with Missouri if I received a 1099-r from a public retirement plan in Missouri, but live in Maryland?

Do I have to claim the income in both Missouri and Maryland?