I actually did that when I played this game for the very first time. It's really not hard to do it as levers controlling cells aren't labeled. Consequences of this were prisoners running to stairs leading to mine and Hammerites spotting them and launching alarm. So it was harder to sneak and also noisy because of alarm. But mission continued normally as there is no objective that prevents any alarm.