Not easily.
Xcode is not available for Windows.
You will generally want to use Windows and Windows development tools when developing for Windows platforms, or you will have added porting and testing the app to Windows or whatever the target platform to the aggregate development and testing effort involved.
You could certainly create and test a Swift app on macOS. To then use that same app on Windows, you will first need to,establish a working Swift environment on Windows, and then porting and building that Swift app as a Windows executable, and then testing the Windows executable on Windows. Then there’s the ongoing costs and effort of keeping the target run-time environments working as Microsoft updates things and Swift updates things.
Intro:
https://www.swift.org/blog/swift-on-windows/
https://www.swift.org/platform-support/
What tooling I see available for Windows looks dated, or looks involved to install, and the related forums appear low-traffic.
https://github.com/compnerd?tab=repositories
https://forums.swift.org/c/development/windows/67
Kotlin and Java might be alternatives to Swift here, as those intentionally start out more portable, and platform independent. The apps tend not to appear to be platform-native, however. Microsoft also has .NET tools for macOS, and does have a port of that tooling to macOS. Flutter too, that with the risks of incorporating a Google platform. Neither Kotlin nor Java nor .NET nor Flutter will use Xcode.