Theon question

I haven’t read the books but I want to be spoiled because I’m confused by stuff that I found in the theon tag. Does Ramsay actually rape Theon in the books and in which context is the line “Reek belongs to Ramsay and Ramsay to Reek” uttered in? Is it an actual line from the books?