I had four abdominal surgeries within a 5 year period. They always came in and gave me heparin injections to prevent clotting, even when I was ambulatory. My youngest son developed a blood clot in his lung when he was going through chemo in 2019. He ended up having to give himself those injections every day for the remaining months he was doing chemo.
I got a dvt after an extended hospital stay. They should always put those puffer bags on your legs after any surgery.