Answer:
No.
Explanation:
John F. Kennedy came in office in 1961 and left in 1963 due to his untimely death, while Martin Luther King was murdered in 1968 five years after John F Kennedys death. Therefore the answer is "no" John F. Kennedy was not president when Martin Luther king was murdered.
Hope this helps.