Yes, it has nothing to do with interrogative pronouns. Cases are the same in interrogative and affirmative. (Well, mostly the same.) Basically, to identify a case here you need to know a verb it is agreed with. Любить музыку - to like the music. Verb любить requires direct object in accusative. Of course it is difficult to learn everything but there is a pattern, which you will get intuitively after some practice.