Detract from points when opening a hint?

Hi!

I was wondering if there is there a way to have points detracted from when a learner opens a hint, so that they’re encouraged to try and solve it themselves?

Thanks!