For instance, in my church (and many other evangelical churches) the church recognizes any marriage that is legal, regardless of where is is performed.
Other churches (the Catholic church for one) only recognize marriages that are performed by a priest.