can the linear nested IF/ENDIF structures can contain other decision or looping structures inside their code block

Indeed!

It is possible to nest almost any number of levels of if-else-endif or other looping structures.