No, you need the brackets on that line because you are setting the result of the function into a variable.
You are probably getting errors because you are only passing it two arguements and it needs three.
code:
value = GetSetting("MyAppName", ",Settings","MySettingName")