yes, although you should make sure that you're not insulting the alliance leader, who happens to have his million-might self less than an hour away.
Just go to the alliance tab at the top. Click on it and then look at the tab that comes up. There is a button named "Leave alliance". It does what it says.