This is going to depend on some specifics of your situation. You might be able to if both are consumer accounts. If the Office365 account is a work or education account then you probably won’t be able to.
If you search for “merge Microsoft accounts” you can find some tutorials that will walk you through it if they are account types that can be merged.