Background: Dynamic core-excitation effects have been found to be of importance in breakup reactions and may be of relevance when obtaining spectroscopic information from transfer reactions. Purpose: In this paper we extend the distorted-wave Born approximation (DWBA) formalism in order to allow for noncentral components in the core-core term appearing in the transition operator, which allows for dynamic core-excitation effects. Then we study these effects by applying the formalism to different (d,p) reactions. Methods: The expression of the nonlocal kernels required for the evaluation of the DWBA amplitudes has been extended so as to include noncentral parts in the core-core interaction. The DWBA scattering amplitude is then obtained by solving the corresponding inhomogeneous equation, with the new computed kernels, and the usual outgoing boundary conditions. A new DWBA code has been developed for this purpose. Results: For 10 Be(d,p) 11 Be, core-excitation effects are found to be almost negligible (<3%). The importance of this effect has been found to depend to a large extent on the excitation energy of the core. This has been confirmed in the 30 Ne(d,p) 31 Ne case, for which the excitation energy of the first 2 + state is 0.8 MeV, and the effect of core excitation increases to ≈10%. Conclusions: We find dynamic core-excitation effects in transfer reactions to have small contributions to cross sections, in general. However, they should not be neglected, since they may modify the spectroscopic information obtained from these reactions and may become of importance in reactions with nuclei with a core with high deformation and low excitation energy.