Yes as long as you weren't born in that country and you have a passport showing that you were there legally
My boyfriend is from America and I am from Slovenia/Europe. We plan on getting married in Slovenia but we would like 2 know, if our marriage will be legal in US?