If you are under full retirement age (FRA), there is a limit to what you can earn before some or all of your benefits are withheld.
This is true whether you are receiving Social Security Retirement or a Survivor benefit. Once you reach FRA, you can make as much as you want. It's important to note, this is not a tax. If the earnings penalty applies to you, Social Security will adjust your benefit formula at FRA to treat the months that you did not receive a check as if you had not elected