I wanted to ask if I can connect the memory of the notebook to my mainbaord of the PC
No you can't
Yes, if you have an adapter for it.
With adapter yes, if your ram is supported by the board
For RAM from the last two decades, there are no adapters, since the timing is far too critical.
Where do you get one
You prefer to buy new ram
Do you have to look yourself? Aliexpress is definitely a contact point. Example of what this looks and is called: https://www.amazon.de/...0284817406
It is extremely unlikely that the notebook memory in the desktop can get up and running. Even if it's the same type (DDR4 or DDR3), it will be difficult to find an adapter that allows for connection. And even with Adpater, if there's one, it is very uncertain that it will even work.
So, three words: let it be.
Notebook and PC RAM modules have different form factors
So no