Yes, TSA has the authority to unlock and inspect checked luggage. They will leave a notice inside if they need to inspect your bag. You can use TSA-approved locks that TSA can easily open if necessary. Non-TSA-approved locks may be cut off during inspection.