Yes, margin trading and leveraged trading are legal in the US, although the regulations may vary from state to state.