Yes, vacuuming up bed bugs is possible, but it’s not too effective. Bed bugs can live after vacuuming by escaping from the vacuum hose.
Just after vacuuming, you need to remove the vacuum bag and seal it immediately to stop the bed bugs from escaping and through the bag in a closed basket.