Does PEX tubing need to be secured to attic joists?
Yes.  There are special plastic clamps that can be used with PEX so that the pipe does not wear.  You should secure it about every 32 to 48 inches, and anywhere to prevent the expansion/contraction of the pipe to cause wear.  It is not necessary to clamp where the pipe runs through holes in wooden joists/studs.