In theory it makes sense. In practice, I've had rats voluntarily walk right up to snake tubs and check things out. Unless I just have genetically flawed rats with no self preservation...

anyways, house mice should absolutely see a shed as a big ole warning sign and avoid. I would use some fresh shed and put it in the areas you think a snake would be if it got loose. Both mice and snakes look for tight spaces.