Yes, 777 and 787 are a common type rating. It was mainly a boeing thing, however, with the A350 airbus went the same way and everyone who is A330 rated is now also A350 rated. Airbus used cross crew qualification and mixed fleet flying before, which many airlines still use but which requires to keep two different type ratings current.