Was it illegal to dunk a basketball in college?

dunking is the beauty of basketball....
y should it be illegal ??
No,it is not illegal nd im a point gaurd nd sometimes center ...... (swingman) .