In general, it's not a very good idea. While Debian and Ubuntu are compatible to a large degree, and share many of the same source packages, the binary packages are not identical due to having been built independently. This causes unexpected effects in the package management system.
However, in general, this is not an issue, for one simple reason: essentially all of the software in Debian is also available in Ubuntu repositories, so there is no reason to mix the two.