How to file state taxes when you live in MT and work in OR

do I need to file state taxes in both OR and MT?