Is The dog followed the rabbit when it jumped into the bushes. a compound sentence?

No.

A compound sentence has two or more independent clauses. Your sentence has one independent clause and one dependent clause.