I recently wrote a story but I'm not sure if it's acceptable because the main character passes away...

Would writing about death be unacceptable for a school project?