The simple answer is yes. Reselling online is completely legal and surprisingly easy. The term for this is retail arbitrage.