As somebody who got married having known one another for only four months, I can say that getting married as means of establishing a relationship isn't necessarily bad, but there are things to consider.
Of course in this day and age you can always get a divorce, so in my opinion if you feel like it's the right thing to do, go for it.
However, there are some things which initially don't seem like issues, but may turn into ones (some regardless of whether you're married or not).
1. Being married to somebody and having a residence permit based solely on that marriage puts the parties in different positions. One has the power to throw the other out of the country, if he/she so desires. I know it sounds extreme, but a relationship fight will be very unbalanced if the parties think of this, and even outside of fights it creates a power situation which might create insecurities. And this is a two-way street.
2. Establishing oneself as a person in a new country, and not just as the husband/wife of X. This may sound like a strange issue to bring up, but I have known many people to start thinking of themselves as appendages to their spouses, and suspecting others think that too. Can be quite destructive on one's self-esteem.
3. Cultural differences. These may seem like silly little things which give you something to laugh about, but have you considered what it's like to be the only person doing something, and having everybody stare at you as if you're an alien?
4. My Country vs. Your Country. IMHO it's always tricky to live in a country one person is from. There are undertones to all conversations, observations and statements, whether you like it or not. It very soon turns into "me vs. you and your country".
IMHO the best thing to do is to live in a "neutral" country (of course this isn't always viable).
I'm not saying it won't or can't work, We're proof of the fact it has worked for us, but I'm just saying it's a lot of hard work one doesn't necessarily realize straight off the bat. We were relatively knowlegdeable on this, and still many things caught us by surprise.