Is US divorce legal if married in Costa Rica?

You can get married as well as divorced anywhere in the world how ever it is advisable that if you married in Costa Rica it would be easier and less complicated to get divorced in Costa Rica also, this would make it less expensive and have less procedures.