The first game ends story wise when you come across a black screen that says something along the lines of "data successfully exported". As yes, the second game picks up right where the first leaves off.
However I will say, 2 will not have all the scenes from the 1st game, so don't get rid of the first expecting all the scenes you had to just magically appear in the second game's gallery