Can babies understand the word “No” at this age?

Ruby

When my baby boy is doing something he shouldn’t be like trying to climb on something dangerous I say “no” and he just looks at me laughs and keeps doing it.

Or if I ask him to do something like “dance” he shakes his head no and laughs