Sadly as far as I can tell you can only have the breast pumps working during sex.
Although I have wanted to test what you did but honestly I didn't think it would work.