Yes. A function in a class is frequently referred to as a method of that class. However, functions do not have to be defined within the context of a class, and those are only referred to as functions. So in the way that I tend to use those terms, a “function” can refer to either a stand-alone function or a method. But when I use the term method, I’m only referring to a function within the context of a class.