Can I use memory taken from a Macbook Pro in a Mac Pro?

No, not directly.

Image from laptopnews.ro at laptopnews.ro/wp-content/uploads/2011/07/dimm_vs_so-dimm.jpg

The Mac Pro uses full-sized desktop DIMM modules, whereas the Macbook pro uses laptop-sized SO-DIMM modules. These cannot be directly swapped without a passive adapter, which I honestly wouldn't think makes much sense to bother with given how inexpensive 2 GB of RAM is these days for a Mac Pro.