Yeah if you set up wireguard with the default port, you need to open port 51820 UDP and forward it to your raspberry pi.
You seem new so let me ask:
-
Did you set up your raspberry pi to have a static IP address?
-
Do you have a static public IP address through your ISP or did you set up a dynamic DNS service?