Junk Email definition

Does emClient learn what is junk, from the emails put into the junk folder? Or is it entirely dependent on the Email service provider’s categorization? Coming from PostBox, I am used to the PostBox’s capability to learn what I consider to be junk. Very tedious to manage several email servers junk categorisation.