Yes, you can use your Battlefield 6 profile across both PC and Xbox. Thanks to full cross-progression, all of your stats, weapon unlocks, ranks, and cosmetics will transfer between both platforms, provided you link your PC and Xbox accounts to the same EA Account.
Just Link your accounts together to the same EA account and there ya go. Have fun with your friends.
You can do it with alot of games. I have State of Decay 2, Diablo 2, Diablo 3, and Diablo 4 shared on my pc and xbox and can play the same account on both platforms. All my cosmetics and saved games are shared on both platforms.