I don't know about other states, but in Maryland, if you receive an inheritance by a will, you can refuse to accept it however, you must refuse it by "disclaiming".
Should you do so, the disclaimed item(s) pass to the next beneficiary in line.
Keep in mind that disclaiming is a permanent decision. You can't change your mind so, think about it carefully. Do it only if you think it's best financially. Also, there specific rules and steps to complete a disclaimer.
There is a time limit. In Maryland it's within 9 months of the person's passing or nine months after you turn 21 if you’re a minor.
Do not receive any benefit(s) from it. You can't use it or receive the benefits of it and then later decide to disclaim it.
The disclaimer must be in writing by the person doing the disclaiming and it must be delivered to the person in control of the estate or asset, such as an executor, trustee, or custodian.
Usually, it must be either notarized or approved by the court. It's best to contact an attorney.