Yes, that was intentional.  The fact of typing SQL statements into sqlcmd is an @AdHoc invocation.