Finding a kernel with feature transformation
Yes, it is valid.

Kernel is just an inner product in the feature space. In fact, here you have explicitly started from the feature transformation and we understand the feature transformation.