Sure. Getting married is a legal action. Lots of people around the world are in marriages with people who they aren't necessarily passionately in love with. Is it is good idea? That depends.
Marriage isn't just passionate sex and butterfiles. It is sharing a life, house, finances, health issues, family, child rearing, morals, values, dreams, and goals. If you can do that with someone with whom you are he'd-over-heals, then more power to you. Given that more that 50% of all marriages in the U.S. fail, and most of the marriages were based on sexual attraction, maybe being more rational is a better way to go.