Are you asking whether your essay topic should match your major?
Not necessarily. If it does, that’s okay. If it doesn’t I think that’s okay too unless you’re applying for a direct-entry program and you want to show some expertise in that area.
Most colleges know that students won’t pick their majors for awhile. And most students coming in as X major will end up as ABC or even D major that they’ve only just discovered.