Yes. No gore, no real weapons, no sexual content. The “prison” theme is cartoony. The puzzles encourage critical thinking, observation, and patience. Some teachers even use it as a soft intro to logic games.
"Escaping Prison Unblocked" seems to be a popular online game. Here's some general information about it: escaping prison unblocked