Aye, that's possible. All games are made up of conditions, values, & if queries. If you provide the option for players to enable something like that, you can then query said condition wherever you need to in the project to determine what actions/event should play out.
If you use your imagination you can come up with multiple different solutions to a puzzle, or completely swap out one puzzle for something simpler or add time restrictions or limited moves/lifes for harder modes, etc. There's lots of different things you can do once you wrap your head around conditions, values, & if queries, & you will probably be able to do most things you want without having to script anything too - though learning to script really opens up the possibilities of the engine more as it lets you go way beyond the limitations enforced by what's available with the premade action parts, events, & queries, etc.