Not the one you linked, too small and doesn't roll smoothly enough.
For lying in bed ideally you want something that adjustable angles or is handheld.
I haven't personally used any good handheld trackballs. This one from Elecom might be good, but likely over your budget of half a Steam controller.
Logitech's MX Ergo is good and I use it in strange positions, but it is pricey. Maybe you can try their M570 or M575.
Perixx PERIMICE-720 also has adjustable angles by way of multiple included stands.