Typically, the bank knows your visa / citizenship status (because they require to tell them when you open the account) and most banks are reluctant to keep your account open once you are no longer living in the US.
You will find that out when your bank contacts you about it, or if they do not have your new address, when they close your account on you.
Aside from that, you can of course receive payments in your account. There is no way any regulatory or governmental institution would even know about it, and anyway, they wouldn't care.
Note that depending on who makes those payments and for what, they could be taxable events, and if so, the IRS would expect you to file US taxes for them.