You can do anything via a RPC command as you could via the GUI. So if you wanted to send a transaction to a P2PKH address for example, you can use a RPC command to do this.
Thank you
I mean for example seller will add withdraw address P2PKH and when automatically sent from RPC (bech32 addresses) will it be okay without problems?
If you are using bitcoin core, mixing address types is not a problem. You can both send and receive transactions from different address types than what you are using.