At least one Sonos component has to be connected by wired connection to the home network, usually by connecting to a network socket on the router. If such a socket exists on the router, the Sonos Play 5 can be connected to it - assuming the two are physically close to each other. If not, you need a bridge.
All this is on the Sonos website btw.