No, please do not use top level returns. While node accepts it, it is invalid JavaScript and static analysis tools will reject it.