No is the short answer. You can use the same paint colour for doors and walls but you will need to find the right finish that is suitable for both different surfaces. Walls are normally painted in a variant of emulsion, water-based paint while woodwork often requires a dedicated finish that has more staying power to cover wooden surfaces. For woodwork, you will also need a primer and undercoat to ensure the colour adheres to the wood.
You will need to source your chosen colour in an appropriate finish to coat the walls and the wooden doors separately.