Is it legal to use UT4's code as reference?

What does reference mean here?