Resistor before or after led: does it matter?

Depends what the yellow wire is connected to........