Answers, given by Scott & Sama55 are 100% correct for different-different situations.
No you cannot. See my answer here for more details, the way to add custom PHP code is to make a plugin.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.