Default Question about the making ROM

I have one simply question. When i get cyanogenmod 10.1 repo and change device tree etc. and compile it everything will work? Maybe i need drivers? From i can get it?

I know this look like a noob but i have that question and i can't find answer