What a lot of people mean by “recycling” is putting something out at the curb in a recycling container instead of a trash container, or otherwise separating recyclables from trash.
If that’s what you mean, it really depends on where you live. Some recycling programs accept aluminum foil. Some don’t. After all, it’s more difficult to work with than cans and more easily interferes with sorting machinery.