Yes, provided the phones use Windows Phone 10 or later. Prior versions don’t have the necessary APIs to scan for beacons.
There’s also a 3rd party library that abstracts away some of the complications of interpreting the different kinds of advertising (iBeacon, Eddystone). There’s alsoa sample app.