Yes,nodal analysis is applicable to both DC and AC.
Nodal analysis, which is a method of determining the voltage (potential difference) between "nodes" (points where elements or branches connect) in an electrical circuit in terms of the branch currents. (Wiki)