No. The boundaries are wrong (the rod is of length 2L), you don't define which variable you are integrating over, what is your \theta and why do you use sine on it? The expression for r has to be more elaborate, and it should be squared.
M/2L is the mass per unit length, that is correct...