No harm to the amp, could harm the pedal depending on the level your fx loop runs.......but most pedals can take some abuse.
But it most definitely will harm the sound! I would think you would not be able to use very much compression at all before the tone would be seriously squashed!
Why are you wanting to do this? Experiment for 10 minutes and see what it does.....