No you don't.

Placing a bracket there is perfectly fine as long as there was a matching closing bracket.

The code might not do what is expected but would compile and run.