State tax filing

For the year of 2016, I only lived in MD for 3 months, do I still need to file it?