>>matters of religion<<

Nope. Pope is infallible *only in matters of faith and morals. "Religion" is too broad.