It totally depends on the context, as always, but I have to point out a fact that the combined verb 思い入る is quite rarely used(another form 思い入れる is more common, or the noun form 思い入れ you might have already seen), whereas と思い、入りました is a very common expression enough to be easily understandable even without the comma in an appropriate context.