Yes, customs officials have the authority to open and inspect luggage when you are entering a country. Customs officials have the right to search your luggage, bags, and personal items to ensure that you are not carrying any prohibited or restricted items.