Yes! You’d still need to do the squeezing of the edges up into the nozzle though. My gran had something similar but it was about 1/5 the size, made of plastic and generally more effort that even I’d be willing to put into it.
Also, given the amount of toothpaste a device like this would save from being wasted you’d probably need to hand it down to your grand-children to make your money back.