It is correct and it's not random where you put the brackets, you are probably remembering the BODMAS rule (which the modernists now call something more trendy). basically you have to perform the operations in order - brackets, of,division, multiplication, addition, subtraction.