I have done this in the past and most airlines are usually accommodating with checking baggage straight through, etc.
As you do this try to book airlines in the same alliance (i.e. OneWorld, Star Alliance, etc.). This can reduce headaches if one of your flights is late, etc.
Be warned, however, than even though airlines usually are accommodating, they do not have to.