All common 9 speed cassettes use the same freehub body. Also, trekking bikes normally use MTB parts, so there is no problem there. The Acera line is an MTB line. The manufacturers normally only distinguish (with some exceptions) road/MTB/urban and other bikes like hybrid, trekking, gravel, cyclocross take many components from those lines with only a few specifics.
Just check that your Acera rear derailleur actually allows this 11/32 range, but it should. All should be OK.