Is cooking at home associated with better diet quality or weight-loss intention?

Is cooking at home associated with better diet quality or weight-loss intention?