Can you get hired where you received your phd?
Yes, but it is rare, for most schools.

It is usually frowned upon, however, the top schools have to hire from somewhere so it is common for them to at least swap graduates. My anecdotal evidence is that low ranked universities also tend to hire a higher proportion of their own students.

A notable exception is MIT, where 39% of the CS professors received their PhD degrees from there. 



Table is from http://jeffhuang.com/computer_science_professors.html