That's correct! A gerund is formed by adding -ing to a verb and can function as a subject, object, or complement in a sentence. For example:
- Subject: "Swimming is my favorite hobby."
- Object: "I enjoy reading."
- Complement: "Her passion is painting."
In each of these sentences, the gerund (swimming, reading, painting) acts like a noun. If you have any more questions about gerunds or grammar in general, feel free to ask!