A friend of mine was nearly killed doing that. He put his extension ladder in the pickup to reach the peak of his roof. When the ladder moved, he landed in the 2-foot wide spece between the truck and the house. If he had landed on the truck rail ...
As it was, he broke both legs.
Then he had to hire a painter to finish his house.