I'm going to say no, because if you look at the top of the undergravel filter, you'll see that the holes are pretty large and all the sand would eventually get sucked up and filter out. I assume most of the sand would just be sucked up and blown back out into the tank which would be quite messy. So unless you could cover those holes, I don't think it is possible.