One legacy and one segwit. Can it?
Absolutely! Bitcoin uses the Elliptic Curve secp256k1 algorithm to calculate exactly one public key that goes along one private key. However the public key in turn can be used in different ways to make up a human readable format.
In short:
1 Private Key -> 1 Public Key -> N addresses
Most used and standard address types:
- Legacy, P2PKH based on non-compressed public key
- Legacy, P2PKH based on compressed public key
- P2SH wrapped P2WPKH (Nested Segwit)
- Bech32 Native Segwit
But since addresses can be viewed as a readable form of an input script you could use the same public key to use more exotic and non-standard addresses like:
- P2SH-P2PK
- P2SH-P2PKH
- P2SH-1of1MultiSi
- P2SH-(locktime)
- 2WSH(locktime)
- ...
Basically you can come up with an umlimited amount of addresses all based on the same public key which is derived from a single private key. Internally however bitcoin does not use addresses so you should keep in mind every different type from above needs a different unlocking script.