Store access restricted and back end error

Are you logged in to the same account on both the Xbox app and Microsoft Store app?