TL;DR
Yes, it should be safe to try. It will probably work.
Explanation: what memory will work together?
The requirements for memory to work together are:
- The motherboard must have enough memory banks.
- The memory type (DDR2/DDR3/DDR4/...) must be of the same for all banks.
Furthermore:
- To enable dual speed memory, you should use the same pair of banks next to each other, if your motherboard supports this.
- The memory voltage may be different for different banks, as long as it's part of the memory type's spec (also see here and here and here)
- You may mix single banks next to a pair of banks. The combination of a pair and a single bank might not work. Switching the order in which the memory banks are placed on the motherboard can make difference.
- You may use the same brand (this is just a best practice).
- The memory CAS timings may be different, but in that case, the faster bank runs at a lower CAS timing speed. In general, it should work, but in specific cases it might not work. (Also see here).
- The memory frequency may be different, but in that case, the faster bank runs at a lower speed. In general, it should work, but in specific cases it might not work.
In general, also see this great answer.
It does not matter if the RAM sizes are different or if the chip layout is different.
In your case, the must-have requirements are met, so it's safe (but no guarantee) that it works. You should just try it.