It only applies if the transistors are identical like they could be in an IC.
You can even have a different ratio of currents by making one transistor larger than the other.
If you need details, go to www.google.com . Enter in the search box Current Mirror. The first few links are very detailed.