Yes, you can use a planer for that. But it will be a risky move. As it slices the wood piece, there will be a chance of creating a deep removal.