If a wizard wants to burn spell slots and risk a trap blowing up in his face, sure...
Bingo!
Thank you for actually saying something that is truthful instead of the mythical answer that some people tend to use a lot.
Knock has never replaced the rogue. It was meant to be a contingency in case the rogue died or there wasn't one. Sometimes you have to take a risk of setting off the trap to get to the other side of that door because what's coming could be just as dangerous.