Yes but think you need to move the braces.

-Daty