Yep, it's basically the content of the ceremony and not the location that counts in the Catholic Church.

Many priests are happy to conduct marriages in other locations, but be aware it's considered more respectful towards the sacrament of marriage to provide some sort of shelter - ie a verandah, pergola, marquee, etc rather than just under the sky.