Best setup for 12v solenoid

I thought so, but wanted to make sure. Thanks