Does build number matter when rooting phone? I want to root a Galaxy Ace S5830, Android 2.3.6 Build Number GINGERBREAD.DXKT5.

I've seen some tutorials that says specific build numbers while some says nothing specific. 

Does build number matter when rooting phone?

BTW if you have any tips on how to specifically root this (2.3.6 GINGERBREAD.DXKT5), that would be cool.
No, build number rarely matters.

The main reason to note the build number is because of the baseband - but I normally take no notice of the build number.