Yes!
Don't do it!!
Others may say it is fine, but other than to run an odd loco on address 0 for a short time, I would not.
The noise the motor(s) make should give you a clue.
AND,
if you leave an analogue loco for any length of time on a DCC powered track, the noise from the motor tends to stop. As does the motor, quite often.
Get yourself a 10Amp double-pole, double-throw, centre-off switch and switch the whole track from DCC to analogue..
Run a separate DCC feed to point controllers (if you use them) and you can still control the points whilst running an analogue loco.
If you have two loops, and want to just switch one to analogue:
You can do this. BUT, you must isolate any crossovers, and they should be (at least) one and a half times longer then the longest train you ever think you will run.
Overly cautious maybe, but safest way IMHO.