Playing with two friends

So, is it possible to play one story on split-screen with a friend and then play with a different character online?
Does it affect the two different stories or do I have to finish with one friend before starting a new story/game?