Yes, dropshipping is legal. You may run into other legal issues depending on who your supplier is, but dropshipping on its own is a perfectly legitimate method of order fulfillment. Just remember to protect yourself with a Dropshipping Agreement Contract.