Yes, suddenly is an adverb that describes something as “abrupt and unexpected” (e.g., “Suddenly, it got really quiet”).
“All of a sudden” is an idiom that is synonymous with the word “suddenly” (e.g., “All of a sudden, everyone cheered”).