So i've been using poweroff command to shutdown my computer at a specific hour.
Is it okay for the hardware to do this (e.g hard drives)? Or should I use other system call?
poweroff is the proper way to do this. shutdown -h is exactly equivalent in Debian/Ubuntu (and most other systems).