Your sentence is correct, but there is no past perfect continuous form there. Past perfect continuous forms are: he had been finishing, he had been reading, he had been planning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.