Yes you can. Just use mix nodes or alpha over node and animate the factor. Just place mouse cursor over the factor and press I to insert keyframe. To see the key frames in dopesheet or graph editor you will need to have the node(s) selected or you can click on the arrow icon in their header to show all keyframes.