Worked in a different state friom where i reside

If I worked in michigan and ohio last year will that affect my taxes ?