Control solenoid valve using ESP32

Hi im using esp32 to control a 12v solenoid valve, right now i dont have mosfet and voltage regulator,i wish to use Darlington pair transistor Tip122 instead of them…can this be done?please help