You must have been listening to some Etudes, which Chopin composed as exercises. If that is the case, then your hunch is correct.