No not at all, those problems are in EL Salvador and in Honduras.
MS-13 got started in Los Angeles California by Salvadorians who migrated there. Then when they got in trouble with the law in the states and got deported back to El Salvador they started the gang in there home country and it grew even more it stands for Mara Salvatrucha which means Salvadorian Gang and M-18 also started in LA by Hondurians and some of them also got deported to Honsuras and started the gang in Honduras.
They are in no way related to COsta RIca or Nicaragua in fact NIcaragua, COsta Rica and Panama are the safest countries in central america and they do not have gangs. Of course every country in the world has crime and criminals but you wont see any MS13 or M-18 in CR or Nica it does not exist there.