The spacing of a 7-speed cassette is different from an 8-speed so, assuming you are using indexing shifters not a friction based thumb shifter, your 7-speed shifters will not reliably shift between gears on an 8-speed cassette.
You can use an 8/9 speed wheel with a 7-speed cassette with a spacer on the inside.