Yes, as a spouse of the EU citizen you are entitled to apply for the residence permit in Latvia in accordance with the Cabinet Regulations “Procedures for the Entry and Residence in the Republic of Latvia of Citizens of the Union and their Family Members”.