Yes, you can leave the country for trips as long as the total amount of time absent from the country does not exceed 6 months out of each residency year.