Yes you can - on my system, the files in /etc/profile.d all have a mode of 0755 (rwxr-xr-x) and are owned by root. As an example, here is /etc/profile.d/jdk.sh:
Code:
ls -l /etc/profile.d/jdk.sh
-rwxr-xr-x 1 root root 148 2010-05-09 11:47 /etc/profile.d/jdk.sh
cat /etc/profile.d/jdk.sh
#!/bin/sh
export JAVA_HOME=/usr/lib64/java
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"