Homemade buttermilk is usually more curdled thanks to the acidity from vinegar or lemon juice as opposed to smooth and tangy so it will likely result in a different texture or flavor in your cake. Homemade buttermilk is best in non baked goods because it will also affect the leavening ingredients (baking soda etc) in baked goods.