Yes. You can install WordPress anywhere whether it is a subdomain or subdirectory. You will need to choose the installation path and you will be able to install it anywhere.