quick question about Vin pin

If it is all going to be inside a box, could you just hook up to Vraw by soldering to the barrel plug connector pins on the board?