Joystick configuration

Can I use a ps4 joystick to play on a project made with engine 4? Do I have to configure it? thank you