Will this code work? (simple)

That code won't even compile.
But the compiler already told you that.

Please use code tags when posting code - if you read back what you posted, you'll see that it doesn't match what you wrote.