Yes, but the filling will be a bit runnier and may leak from the pastry. If you are substituting preserves for guava paste, make sure you don't overfill the pastry and seal the edges well.