Need some help with UFW and blocking an IP

I’m not too familiar with networking and firewalls, and I’m attempting to block an IP using UFW, but I’m not sure if it’s working or or not. I followed the Archwiki article and set it up using:
ufw deny from 185.40.64.69 to any.
When I run ufw status, it seems to be blocking it.

To                         Action      From
--                         ------      ----
Anywhere                   DENY        185.40.64.69
185.40.64.69               DENY OUT    Anywhere

However, if I ping the IP it seems, if I’ve interpreted it correctly, to still be open as packets are transmitted.

--- 185.40.64.69 ping statistics ---
23 packets transmitted, 0 received, 100% packet loss, time 22546ms

Is this correct, and if so, what have I done wrong?