Answer from Alabama Secretary of State:
Can I cast a write-in vote for my favorite cartoon character or superhero?
No. Write-in votes will be counted only for live, human beings who are eligible to serve in the office for which they have been voted. Votes cannot be counted for fictional characters
The correct answer would seem to be:
Yes you can, but those votes will not be counted in the official tallies.