Sounds like you have the idea. The box usually has teeth to just take in the surface of the water and keep critters out. The surface is where the oils and proteins collect, so that water is drained to the sump to be ran through your skimmer and maybe some rock/algae ect. to clean it further. The clean water is then pumped back into your main tank and this overflows the box, making more water run back to your sump to be cleaned.
Support the non-profit Reef Stewardship Foundation with the iSearchiGive.com search engine, donate a penny with EVERY search. Find out more information by following this link to the RSF iSearchiGive.com search program.