Yes, it's safe to use add_action() in the functions.php file. However, consider creating a custom plugin for complex or reusable code to keep your WordPress code clean and maintainable.