Shift lever and rear derailleur compatibility
Yes, you can use any Shimano 8 speed shifter with a Shimano 8 speed derailleur and cassette.
Generally Shimano (and SRAM) used the same sprocket spacing for all cassettes with the same number of sprockets (more sprockets means narrower spacing though). All MTB shifters up to 9 speed use the same cable actuation ratio (ratio of cable pulled to cage movement), and all shifters pull the right amount of cable per shift for the number of speeds they are for.