Leaving blanks in exam papers

So since secondary i’ve been told to not leave questions blank if you don’t know how to do it. But what’s the point if you do also you get wrong. Well at least that’s my pov. Ik sometimes can get method marks but what if you really really don’t know? Thoughts on this? Is it really okay to leave 1 or 2 questions blank in an exam paper?