Why not experiment on your computers?
I think few people can aswer your question. So I suggest you have a try. But I guess the result is likely to be negative. I guess that memory slots in different machines have different sizes.
Would someone please kindly tell me can put my desktop's memory into my laptop? What's the difference between them?