Normally you need 2 transistors (or MOSFETs). This may work for low current needs (less than 100 mA):