Sending from multiple addresses

Ju1c_
0
0

If I had 2 addresses, each containing 1 BTC (2 BTC total) and sent 2 BTC to another address. Would it be public that the 2 addresses are from the same wallet? This might be a stupid question but I couldn't find anything online.