The above steps will block both sending and receiving.
If you need an additional method, there is one but just know it’s quite involved and needs to be done from a Mac. The steps to install the restriction will also require erasing the device since an AirPlay restriction only applies to a “Supervised” (device management-bound) device.