No as the retained heifer has no value, she is only a liability eating inputs. If she craps out calving your 401 took a dump.
If I sell my heifer and buy yours I have no negative impact to my 401. If my heifer dies I can write off her cost, now it's like she is FDIC insured.
There's a lot of ways to mitigate that risk though. Retained heifers should have calving ease built in. If they don't they shouldn't be retained.
If there is an issue and she doesn't die then sell her as meat.
My agribusiness policy that covers the ranch comes with livestock mortality insurance built in...if one dies while calving I get that payment plus I will get out there fast, and out to be processed. There's a USDA certified guy out here with a mobile unit that will come out and take them on the spot.
There are two ways that you can count retained heifers for taxes. Either as a part of your inventory or as capital assets. For the most part it makes more sense to keep them as inventory since you don't have a cost basis for them. If she dies then you offset any sold inventory you have that year.