Yes, of course you can, as long as you have the proper documentation. The rabies vaccination must be administrated within 10 days prior to departure. This way your pet can entry Costa Rica together with you and no quarantine period will be necessary.